package com.xd.cloud.entity.device;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.xd.cloud.entity.BaseEntity;

/**   
 * 下发的消息
 * @author: dhl   
 */
@Entity
@Table(name = "tb_message")
public class Message extends BaseEntity{

	//设备号
	private String device_id;
	//消息类型 0默认文字消息
	private int msgtype;
	//消息内容
	private String msgcontent;
	//创建时间
	private Date create_time;
	//使用情况   0初始状态  1下发成功 2 下发失败
	private int status;
	//失败原因
	private String errormsg;
	public String getErrormsg() {
		return errormsg;
	}
	public void setErrormsg(String errormsg) {
		this.errormsg = errormsg;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getDevice_id() {
		return device_id;
	}
	public void setDevice_id(String device_id) {
		this.device_id = device_id;
	}
	public int getMsgtype() {
		return msgtype;
	}
	public void setMsgtype(int msgtype) {
		this.msgtype = msgtype;
	}
	public String getMsgcontent() {
		return msgcontent;
	}
	public void setMsgcontent(String msgcontent) {
		this.msgcontent = msgcontent;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
}
